/**
* @file TableFileReader.cpp
* Class to handle interpolatable time serial data
*/

//============================================================================
//
//  Shoujian Zhang, Wuhan University, 2019.4.25
//
//============================================================================

#include "StringUtils.hpp"
#include "TableFileReader.hpp"
#include "MiscMath.hpp"
#include "CommonTime.hpp"
#include "MJD.hpp"
#include <fstream>

using namespace std;
using namespace gpstk::StringUtils;

#define debug 0

namespace gpstk
{

   void TableFileReader::load()
      noexcept(false)
   {
         /*
          * read  eop data from file
          */
       try
       {
           pEOPStore->loadIERSFile( eopFileName );
           pLeapSecStore->loadFile( leapSecFileName);
           pSolarSys->initializeWithBinaryFile( jplFileName);
           pAntexReader->open( atxFileName );
           pBLQReader->open( blqFileName );
           pViennaTM->loadFile( gpt2FileName );

       }
       catch(...)
       {
           cerr << "TablefileReader ERROR!" << endl;
           exit(-1);
       }

       return;
   }


}  // End of namespace gpstk
